package com.project.running.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;

@Data   //lambok插件自动为字段生成set、get方法、hashcode
@AllArgsConstructor      //全参构造器
@NoArgsConstructor      //无参构造器
public class Memberinfo implements Serializable {

	private Long id;
	private String nickname; // 昵称
	private String password; // 密码
	private String gender; // 性别
	private Long age; // 年龄
	private String email; // 邮箱
	private String provincecity; // 省I份
	private String address; // 地址
	private String phone; // 电话
	private String passwordquestion; // 密码问题
	private String passwordanswer;  // 密码提示答案
	private String recommender; // 推荐人
	private Long point; // 积分
	private Date registerdate; // 注册时间
	private Date latestdate; // 上一次在线日期
	private Long status; // 会员状态
	private Long isonline; // 是否在线
	private Long gradeid;

//	private Memberspace memberSpace; // 个人控件
//	private Graderecord graderecord; // 分数等级

	public Memberinfo(String nickname, String password, String gender,
					  Long age, String email) {
		this.nickname = nickname;
		this.password = password;
		this.gender = gender;
		this.age = age;
		this.email = email;
	}

//	public Memberinfo(Graderecord graderecord, String nickname,
//			String password, String gender, Long age, String email,
//			String provincecity, String address, String phone,
//			String passwordquestion, String passwordanswer, String recommender,
//			Long point, Date registerdate, Date latestdate, Long status,
//			Long isonline, Memberspace memberSpace) {
//		this.graderecord = graderecord;
//		this.nickname = nickname;
//		this.password = password;
//		this.gender = gender;
//		this.age = age;
//		this.email = email;
//		this.provincecity = provincecity;
//		this.address = address;
//		this.phone = phone;
//		this.passwordquestion = passwordquestion;
//		this.passwordanswer = passwordanswer;
//		this.recommender = recommender;
//		this.point = point;
//		this.registerdate = registerdate;
//		this.latestdate = latestdate;
//		this.status = status;
//		this.isonline = isonline;
//		this.memberSpace = memberSpace;
//	}
}